package com.liu.inter;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.liu.model.Person;

public interface IPersonOperation {
	public Person selectPersonByID(int id);

	public List<Person> selectPersons(String name);

	public void delete(int id);

	public void add(Person p);

	public List<Person> getPersonPage(@Param(value = "startPos") Integer startPos,
			@Param(value = "pageSize") Integer pageSize);
	
	public int getPersonCount();
	
}
